package com.wjy.qs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wjy.qs.entity.Author;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author ybxxszl
 * @since 2019-02-21
 */
@Transactional(isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED)
public interface IAuthorService extends IService<Author> {

    void insertAuthor(Author author);

    void updateAuthor(Author author);

    void deleteAuthor(String authorId);

    Author selectAuthor(String authorId);

    List<Author> selectAuthorList();

}
